<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserPreference.aspx.cs" Inherits="WMS6.Web.Administration.UserPreference" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>UserPreference</title>
     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js"  type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
        //初始化页面
        window.onload = function(){
            initQueryPage();
            }
            
         function ThemesClick(name,num)
         {
             document.getElementById("rdobtn" + name).checked = true;
  
             self.parent.document.getElementById("mycss").setAttribute("href", "style/zh/" + num + "/css.css");

             //如果是繁体中文字体 则加载不同的图片按钮文件
             if(self.parent.document.getElementById("hdnFullLanguageOption").value.toLowerCase() == "zh-tw")
             {
                var tempLang = self.parent.document.getElementById("hdnPerfLanguage").value;
                
                self.parent.document.getElementById("warehouse").style.backgroundImage = "url(style/" + tempLang + "/" + num + "/images/warehouse_tw.gif)";
                self.parent.document.getElementById("logout").style.backgroundImage = "url(style/" + tempLang + "/" + num + "/images/logout_tw.gif)";
                self.parent.document.getElementById("help").style.backgroundImage = "url(style/" + tempLang + "/" + num + "/images/help_tw.gif)";
                self.parent.document.getElementById("about").style.backgroundImage = "url(style/" + tempLang + "/" + num + "/images/about_tw.gif)";
             }
         }
        
        //切换页面皮肤
    	function changeStyle(style,language) {

    	    self.parent.window.location.href = "../default.aspx?style=" + style + "&lang=" + language;
		    window.location.href="UserPreference.aspx";
		    
		}

		function RefreshMenu() {
		    //self.parent.location.reload();
		    self.parent.window.location.href = "../RedirectDefault.aspx";
		}
    </script>
</head>
<body>
    <form id="F1050" runat="server">
    <div>      
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="用户喜好" 
                            meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnSave%>" AccessKey="s" OnClick="btnSave_Click" 
                             />
                    </td>
                    <td> 
                        <asp:Button ID="btnSetDefault" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnSetDefault%>" OnClick="btnSetDefault_Click" 
                             />
                    </td>
                </tr>
            </table>
        </div>     
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">区域</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2)"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">样式</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblCountry" runat="server" CssClass="label" Text="国家" 
                                meta:resourcekey="lblCountry"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblLang" runat="server" CssClass="label" Text="语言" 
                                meta:resourcekey="lblLang"></asp:Label>
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:DropDownList ID="ddlCountry" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlCountry">
                            </asp:DropDownList>
                        </td>
                        <td width="180">
                            <asp:DropDownList ID="ddlLang" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlLang">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblDateFormat" runat="server" CssClass="label" Text="日期格式" 
                                meta:resourcekey="lblDateFormat"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTimeFormat" runat="server" CssClass="label" Text="时间格式" 
                                meta:resourcekey="lblTimeFormat"></asp:Label>
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:DropDownList ID="ddlDate_Format" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlDate_Format">
                            </asp:DropDownList>
                        </td>
                        <td width="180">
                            <asp:DropDownList ID="ddlTime_Format" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlTime_Format">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblTimeZone" runat="server" CssClass="label" Text="时区" 
                                meta:resourcekey="lblTimeZone"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblCurrency" runat="server" CssClass="label" Text="币种" 
                                meta:resourcekey="lblCurrency"></asp:Label>
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:DropDownList ID="ddlTimeZone" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlTimeZone">
                            </asp:DropDownList>
                        </td>
                        <td width="180">
                            <asp:DropDownList ID="ddlCurrency" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlCurrency">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblDigitsNo" runat="server" CssClass="label" Text="小数位数" 
                                meta:resourcekey="lblDigitsNo"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTime" runat="server" CssClass="label" Text="是否显示时间" 
                                meta:resourcekey="lblTime"></asp:Label></td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:DropDownList ID="ddlDigits_No" runat="server" CssClass="mediumselectbox" Enabled="false" 
                                meta:resourcekey="ddlDigits_No">
                            </asp:DropDownList>
                        </td>
                        <td width="180">
                            <asp:DropDownList ID="ddlTime" runat="server" CssClass="mediumselectbox" >
                           
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2"  style="display: none;">
                <table width="660" border="0" cellspacing="0" cellpadding="0" style="margin-left:10px" class="div_query">
                    <tr>
                        <td width="220" height="110" valign="bottom">
                            <img src="../Images/pic_css1.jpg" alt="Gorgeous Orange" class="img" runat="server" width="165" height="100" id="Orange" onclick="ThemesClick('Orange',7);" />
                        </td>
                        <td width="220" valign="bottom">
                            <img src="../Images/pic_css2.jpg"  alt="Classic Blue" class="img"  width="165" height="100"  runat="server" id="ClassicBlue" onclick="ThemesClick('ClassicBlue',2);" />
                        </td>
                        <td valign="bottom">
                            <img src="../Images/pic_css3.jpg"  alt="Fashion Black" class="img"  width="165" height="100" runat="server" id="Black" onclick="ThemesClick('Black',3);" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButton ID="rdobtnOrange" runat="server" GroupName="Themes" 
                                meta:resourcekey="rdobtnOrange" Text="华丽橙" />                                  
                           
                        </td>
                        <td>
                          <asp:RadioButton ID="rdobtnClassicBlue" runat="server" GroupName="Themes" 
                                meta:resourcekey="rdobtnClassicBlue" Text="经典蓝" />   
                           
                        </td>
                        <td>
                             <asp:RadioButton ID="rdobtnBlack" runat="server"  GroupName="Themes" 
                                 meta:resourcekey="rdobtnBlack" Text="时尚黑" />   
                           
                        </td>
                    </tr>
                    <tr>
                        <td height="110" valign="bottom">
                            <img src="../Images/pic_css4.jpg" alt="Cirrus Green"  class="img"  width="165" height="100" id="Green" runat="server" onclick="ThemesClick('Green',4);" />
                        </td>
                        <td valign="bottom">
                            <img src="../Images/pic_css5.jpg" alt="Sky Blue"  class="img"  width="165" height="100"  id="LightBlue" runat="server" onclick="ThemesClick('LightBlue',5);"  />
                        </td>
                        <td valign="bottom">
                            <img src="../Images/pic_css6.jpg" alt="Biz Purple"  class="img"  width="165" height="100"  id="Purple" runat="server"  onclick="ThemesClick('Purple',6);"  />
                        </td>
                    </tr>
                    <tr>
                        <td>
                             <asp:RadioButton ID="rdobtnGreen" runat="server" GroupName="Themes" 
                                 meta:resourcekey="rdobtnGreen" Text="藤蔓绿"  />   
                            
                        </td>
                        <td>
                         <asp:RadioButton ID="rdobtnLightBlue" runat="server" GroupName="Themes" 
                                meta:resourcekey="rdobtnLightBlue" Text="天空蓝" />   
                            
                        </td>
                        <td>
                           <asp:RadioButton ID="rdobtnPurple" runat="server" GroupName="Themes" 
                                meta:resourcekey="rdobtnPurple" Text="商务紫" />   
                            
                        </td>
                    </tr>
                    
                       <tr>
                        <td height="110" valign="bottom">
                            <img src="../Images/pic_css7.jpg" alt="Fashion Blue"  class="img"  width="165" height="100" id="FashionBlue" runat="server" onclick="ThemesClick('FashionBlue',8);" />
                        </td>
                        <td valign="bottom">
                              </td>
                        <td valign="bottom">
                              </td>
                    </tr>
                    <tr>
                        <td>
                             <asp:RadioButton ID="rdobtnFashionBlue" runat="server" GroupName="Themes"  meta:resourcekey="rdobtnFashionBlue"  Text="时尚蓝"  />   
                            
                        </td>
                        <td>
                        
                            
                        </td>
                        <td>
                         
                            
                        </td>
                    </tr>
                </table>
            </div>
        </div>  
    </div>
    <input type="hidden" id="hdnStyle" runat="server" />
    <input type="hidden" id="hdnLang" runat="server" />
    </form>
</body>
</html>
<script type="text/javascript">
    <!--
    var style = document.getElementById("hdnStyle").value;
    var lang = document.getElementById("hdnLang").value;
    if(style != "")
    {
        changeStyle(style,lang);
    }
   //-->
</script>
